<template>
	<view class="agreement">
	   <view class="content">
	   	  <u-parse :html="content"></u-parse>
	   </view>
	   
	   
	   <view class="button">
	   	   <u-button @click="go_but()" class="u-button" :ripple="true" :hairLine="false" type="primary">同意并注册</u-button>
	   </view>
	   
	</view>
</template>

<script>
	var than;
	export default {
		data() {
			return {
			    content:'',
				id:''
			}
		},
		onLoad(option) {
			than = this;
			than.id = option.id
			than.detailed_fun()
		},
		methods: {
	       detailed_fun(){
	       	than.post("api/user/agreementDetails", {
	       		id:than.id
	       	}, function(data) {
	       		than.content = data.content
				
				uni.setNavigationBarTitle({
					title:data.title
				})
	       		//console.log(data,"sss")
	       	})
	       },
		   go_but(){
			   than.toPage('../login1/index')
		   }
					
		}
	}
</script>

<style lang="scss" >
	page {
		background: #FAFAFA;
	}
	.agreement{
		padding:30rpx;
	}
	.content{
		background: white;
		padding:30rpx;
		border-radius:20rpx;
		margin-bottom:150rpx;
	}
    .button {
    	position: fixed;
    	left: 0;
    	right: 0;
    	bottom: 50rpx;
    
    	.u-button {
    		border: 0;
    		width: 245rpx;
    		height: 74rpx;
    		background: #FB683D;
    		border-radius: 20rpx;
    	}
    }
</style>
